<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * 枚举类型相关配置文件
 * 
 * 配置所有的枚举类型，集中配置，精简文件数量 & 简化代码
 * 
 * @author	Jason
 * @date	2017年7月10日 下午6:21:34
 */

/*
|--------------------------------------------------------------------------
| 数据库枚举类型 取值映射
|--------------------------------------------------------------------------
|
| 广告、标签、观点
|
*/
$config['mapper_metrix']['advertisement'] = [
		'master' => [
				'type' => [
						'single' => 'Single',
						'rotation' => 'Rotation',
				],
		],
];
$config['mapper_metrix']['tag'] = [
		'master' => [
				'module' => [
						'opinionMerchantService' => '商家服务质量',
// 						'opinionGuidesLevel' => '导游讲解水平',
// 						'opinionRouteDesign' => '路线规划',
// 						'opinionRideExperience' => '骑行感受',
						
						'touroute' => '路线',
						'merchant' => '商户',
						'member' => '用户',
				],
		],
];
$config['mapper_metrix']['opinion'] = [
		'master' => [
				'resource_type' => [
						'feedback' => '反馈',
						'routeOrderComment' => '订单评价打分',
				],
				'source_type' => [
						'member' => '用户',
				],
				'target_type' => [
						'website' => '网站反馈',
						'merchantServiceScore' => '商家服务质量',
						'guidesLevelScore' => '导游讲解水平',
						'routeDesignScore' => '路线规划',
						'rideExperienceScore' => '骑行感受',
						'masterCommentContent' => '评论内容',
						'additionalCommentContent' => '追评内容',
				],
		],
];
$config['mapper_metrix']['trick'] = [
		'master' => [
				'type' => [
						'favourite' => '收藏',
						'follow' => '关注',
						'praise' => '赞',
						'voteup' => '顶',
						'votedown' => '踩',
						'interest' => '有意',
						'blacklist' => '拉黑',
						'_recommand' => '内推系列',
				],
				'source_type' => [
						// 'member' => '用户',
						'consumer' => '顾客',
						'business' => '商户',
				],
				'target_type' => [
						'touroute' => '路线',
						'merchant' => '商户',
						'agency' => '代理商',
				],
		],
];
$config['mapper_metrix']['message'] = [
		'master' => [
		],
		'template' => [
				'medium' => [
						'WEB' => '站内信',
						'APP' => 'APP推送',
						'SMS' => '手机短信',
						'EML' => '电子邮件',
				],
				'channel' => [
						'0' => '默认',/*禁用*/
						'1' => '通道1',
						'2' => '通道2',
				],
		],
		'container' => [
		],
];


/*
 |--------------------------------------------------------------------------
 | 子类型 订单评论
 |--------------------------------------------------------------------------
 |
 | 主评评分计算要素，权重
 | 从评目标类型枚举
 |
 */
$config['other']['opinion'] = [
		'route_order_comment' => [
				'score_weight' => [
						'merchantService' => 30,
// 						MARK 评论降维
// 						'guidesLevel' => 40,
// 						'routeDesign' => 20,
// 						'rideExperience' => 10,
				],
				'slave_target_types' => [
						'merchantServiceScore',
// 						MARK 评论降维
// 						'guidesLevelScore',
// 						'routeDesignScore',
// 						'rideExperienceScore',
						#'masterCommentContent',
						'additionalCommentContent',
				],
		],
		
];

